const mongoose = require('mongoose')

const Schema  = mongoose.Schema
// 便签表
const NoteType = {
    userId: { type: Schema.Types.ObjectId, ref: 'user' }, // 用户id
    text: String, // 文本内容
    color: String, // 便签颜色
    time: String // 时间
}

const NoterModel = mongoose.model('note', new Schema(NoteType))

module.exports = NoterModel